<?php 
class Test extends Model
{ 
	public $name = 'test';
	public $primary = 'id';
	function getUser () {
		$num = rand(1,5);
		//print_r($this->db);
		$res = $this->db->select("SELECT * FROM {$this->name} where 1 limit {$num},1"); //查询表, 这里查询你有的表就行了 
		return $res;
	}

} 
?> 